<?php

/**
 *  统计数组中所有的值出现的次数
 */

$array = array(1, "hello", 1, "world", 'c' => "hello");
print_r(array_count_values($array));